package com.lemon.exam.entity.po;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 菜单-接口中间表 持久层对象
 *
 * @author Lemon
 * @since 2025/05/08 12:31:56
 */
@Getter
@Setter
@ToString
@Table(value = "sys_role_menu_resource")
@Schema(name = "菜单-接口中间表")
public class RoleMenuResourcePO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Id
    @Schema(description = "主键ID")
    @Column(value = "id")
    private Long id;

    @Schema(description = "角色ID")
    @Column(value = "role_id")
    private Long roleId;

    @Schema(description = "菜单ID")
    @Column(value = "menu_id")
    private Long menuId;

    @Schema(description = "资源路径")
    @Column(value = "resource_path")
    private String resourcePath;

}
